package com.bluebench.bigul.domain;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class TestElement {
	
	private static String filePath = "D:\\template.xml";
	
	public static String readFileToString() throws IOException{
		File f = new File(filePath);
		StringBuilder sb = new StringBuilder();
		if(f.exists()){
			BufferedReader reader = new BufferedReader(new FileReader(f));
			String line=null;
			
			while((line = reader.readLine())!=null){
				sb.append(line.trim().replace("\"", "\\\""));
			}
			
			
		}
		
		return sb.toString();
	}

	public static void main(String[] args) {
		
		try {
			String s = readFileToString();
			
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		
		
		
		
		
	}
	
	
	
}
